package com.tm.media.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("ap_article")
public class ArticleEntity {
    @TableId(type = IdType.AUTO)
    private Integer  id;//	int
    private String  title;//	varchar
    private Integer  authorId;//	int
    private String  authorName;//	varchar
    private Integer  channelId;//	int
    private String  channelName;//	varchar
    private Integer   layout;//	tinyint
    private Integer   flag;//	tinyint
    private String   images;//	varchar
    private String   labels;//	varchar
    private Integer   likes;//	int
    private Integer collection;//	int
    private Integer  comment;//	int
    private Integer views;//	int
    private Integer provinceId;//	int
    private Integer  cityId;//	int
    private Integer  countyId;//	int
    private LocalDateTime createdTime;//	datetime
    private LocalDateTime  publishTime;//	datetime
    private Integer  syncStatus;//	tinyint
    private Integer  origin;//	tinyint
@TableField(exist = false)
    private Integer article_id;
}
